<?php

require_once('lib/Constants.php');
require_once('lib/Invite.php');
require_once('lib/MixiAppliAPI.php');

$api = new MixiAppliAPI(array_merge($_GET, $_POST));

$api->validate_params(array(
));

$unseen_ids = Invite::get_unseen_ids($api->viewer_id);

if (!$unseen_ids)
    $api->set_error('could not load invite list');

$api->set_result($unseen_ids);

?>
